<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/templates/common/taglib.jsp"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>${title}</title>
<%@include file="/WEB-INF/templates/common/common.jsp"%>
<script type="text/javascript" src="${basePath}/static/jqPaginator/jqPaginator.js"></script>
<script  type="text/javascript" src="${basePath}/static/layer/layer.js"></script>
<link href="${basePath}/static/layer/layer_style.css" rel="stylesheet" type="text/css">

</head>
<body>

	<!--头部-->
	<%@include file="/WEB-INF/templates/common/header.jsp"%>
	<!------导航条-->
	<%@include file="/WEB-INF/templates/common/navigation.jsp"%>

	<div class="list_main lay_out">
		<div class="list_DH">
			<%@include file="/WEB-INF/templates/common/printnav.jsp"%>
		</div>
		<div class="list_NR">
			<div class="loc">
				<h3>编页统计查询</h3>
			</div>
		<div class="list_con_table">
           <div class="search_table">
                <ul class="clearfix" style="margin-bottom:0;">
                	   <li class="Label_1" style="width:12%">姓名：&nbsp;</li>
		               		<li class="Label_2" style="width:15%">
		               		<input class="input_box" type="text"  id="name" value='' />
		               </li>
                		
		               <li class="Label_1" style="width:12%;">扫描日期：&nbsp;</li>
                       <li class="Label_4" style="text-align:left;padding-left:3px;width:32%">
                    	<input class="Wdate input" style="width:44%;" type="text"  id='scanStartDate' value='' onFocus="WdatePicker()" />
                    	<span>&nbsp;-&nbsp;</span><input class="Wdate input" type="text" style="width:44%;" id="scanEndDate"  value='' onFocus="WdatePicker()" />
                       </li>
		               <li class="Label_5">
		                        <div class="right" style="text-align:right">
		                            <a href="javascript:search()" >查询</a>
		                        </div>
		               </li>    
                </ul>
            </div> 
            
          
            	<table class="Search_tableList" cellpadding="0" cellspacing="0">
	                <tr>
	                    <td class="tdLabel_4">扫描总数</td>
	                </tr>
	                <tr id="loading" style="height:50px;display:none">
		             <td colspan="6" align="center" ><img src="${basePath}/static/layer/skin/default/loading-2.gif"></td>
		            </tr>
	                <tbody id="tbody">
		               
	                </tbody>
	   
            </table> 
          
        </div>
      
      
    </div>
	</div>
	<!------页脚部分-->
	<%@include file="/WEB-INF/templates/common/footer.jsp"%>
	
	
	<!-- JS -->
	<script type="text/javascript">
		function search() {
			var scanStartDate = $("#scanStartDate").val();
			var scanEndDate = $("#scanEndDate").val();
			var name = $("#name").val();
			
			if (name == '' || name == null) {
				layer.alert("姓名不能为空",  {icon:5});
				return;
			}
			
			if (scanStartDate == '' || scanStartDate == null) {
				layer.alert("扫描开始日期不能为空",  {icon:5});
				return;
			}
			
			if (scanEndDate == '' || scanEndDate == null) {
				layer.alert("扫描结束日期不能为空",  {icon:5});
				return;
			}
			
			var dataForm = {'name':name, 'scanStartDate':scanStartDate, 'scanEndDate':scanEndDate};
			
			/*------------ajax begin----------------*/
			jQuery.support.cors = true;
		   	$.ajax({
	    		type:'get',
	    		url:"${corePath}/medrecord/queryPaginationWorkStatisticAjax",
	    		data: dataForm,
	    		beforeSend:function(){
	 				$("#tbody").html("");
	 				$("#loading").show();
	 			},
	 			//dataType:'jsonp',
	    		success:function(data){
	    			 $("#loading").hide();
	    			 if(data.success){
	    				 layer
	    				 
	    				var count = data.data;
	    				var html = '';
	    				html+="<tr>"+
  	                 	 			"<td class='tdLabel_5'>"+(data.data)+"</td>"+
  	                  		"</tr>";
	        			$("#tbody").html("").html(html);
	    			} else{
	    				$("#tbody").html("");
	    				layer.alert(data.msg, {icon:5});
	    			}
	    		}
	    	}) 
	    	
	    	/*------------ajax end----------------*/
		}	
	
	</script>
	
</body>
</html>







